package authentication.util;
/**
 * 令牌的状态管理类
 * */
public class StatusCode {
	public static final String $0000_CODE="0000";
	public static final String $1111_CODE="1111";
	public static final String $0001_CODE="0001";
	public static final String $0002_CODE="0002";
	public static final String $0003_CODE="0003";
	
	public static String getMessage(String code){
		if(code.equals("0000")){
			return "令牌有效";
		}else if(code.equals("1111")){
			return "令牌非法";
		}else if(code.equals("0001")){
			return "令牌过期";
		}else if(code.equals("0002")){
			return "IP不符合";
		}else if(code.equals("0003")){
			return "令牌更新失败";
		}else{
			return null;
		}
		
	}
}
